package com.stock.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stock.entity.StockProfitDataEntity;
import com.stock.vo.StockProfitDataResultVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface IStockProfitDataDao extends BaseMapper<StockProfitDataEntity> {

    /**
     * 获取股票收益数据
     * @param beginDate
     * @param endDate
     * @return
     */
    List<StockProfitDataResultVo> getStockProfitData(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

    /**
     * 获取总收益率
     * @param beginDate
     * @param endDate
     * @return
     */
    BigDecimal getTotalProfitRate(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

}
